package com.nmf.site.biz.member.genx.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.nmf.site.biz.member.gen.entity.BizMember;
import com.nmf.site.biz.member.gen.service.BizMemberService;
import com.nmf.site.biz.member.genx.dao.GxBizMemberDao;

@Service
@Transactional(readOnly = true)
public class GxBizMemberService {
	@Autowired
	BizMemberService bizMemberService;
	@Autowired
	GxBizMemberDao gxBizMemberDao;
	public BizMember getByTelNo(String telNo) {
		BizMember bizMember = new BizMember();
		bizMember.setTelNo(telNo);
		List<BizMember> blist = bizMemberService.findList(bizMember);
		if(blist.size()>=1) {
			return blist.get(0);
		}
		return null;
	}
	
	public BizMember getByInvcode(String invCode) {
		return gxBizMemberDao.queryByMemberInvCode(invCode);
	}
}
